<button class="btn-flex w-full c-text-w fs20 bg-green" ui-sref="farm">查看全部</button>
<div class="paper-b m8">
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>农场概况</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>ID</td>
                <td ng-bind="farm.userFarm.farmId"></td>
            </tr>
            <tr>
                <td>购买时间</td>
                <td ng-bind="farm.userFarm.updateTime"></td>
            </tr>
            <tr>
                <td>到期时间</td>
                <td ng-bind="farm.userFarm.expireDate"></td>
            </tr>
            <!-- <tr>
                <td>P++订单号</td>
                <td ng-bind="farm.payOrder.pingxxId"></td>
            </tr> -->
            <tr>
                <td>农场代管理</td>
                <td ng-bind="isJudge(farm.userFarm.myCrops[0].manage)"></td>
            </tr>
            <tr>
                <td>农场代种植</td>
                <td ng-bind="isJudge(farm.userFarm.myCrops[0].sow)"></td>
            </tr>
            <tr>
                <td>前往农场日期</td>
                <td ng-bind="farm.userFarm.myCrops[0].sowDate"></td>
            </tr>
        </tbody>
    </table>
    <table class="table table-hover  table-striped">
        <thead>
            <tr>
                <th>种子</th>
                <th>最新状态</th>
                <th>状态选择</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="green in farm.userFarm.myCrops">
                <td ng-bind="green.cropName"></td>
                <td ng-bind="crop_status(green.cropStatus)"></td>
                <td>
                    <div>
                        <div class="select">
                            <select name="" id="select" class="b-divider-b" ng-model="green_status" ng-options="state.name for state in status" ng-init="green_status=status[0]">
                            </select>
                        </div>
                        <button class="btn bg-blue ml8" ng-click="update_status(green_status.status, green.id)">更新</button>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>用户信息</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <!-- <tr ng-repeat="(key, value) in farm.user">
                <td ng-bind="key"></td>
                <td ng-bind="value"></td>
            </tr> -->
            <tr>
                <td>姓名</td>
                <td ng-bind="farm.userFarm.user.nickName"></td>
            </tr>
            <tr>
                <td>手机</td>
                <td ng-bind="farm.userFarm.user.mobile"></td>
            </tr>
        </tbody>
    </table>
</div>
